<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body style="text-align:center">
<form action="${ctx}/front/login.do?method=forgotPassword" method="post" name="floginForm">

<div class="invoice">
<ul>
<li ><span style="color:#5a3e2e">注意事项：</span> 提供找回密码功能, 请输入您的注册用户名和注册时使用的Email, 系统验证通过后会自动发送邮件到您的邮箱. 
如果有其他问题, 请致电锐意网客户服务热线:400-810-3859 。</li>
<li  style="color:#5a3e2e">用户名 </li><li><label>
<input type="text" id="username" name="reg.username" maxlength="20" class="invoice_input"/>
</label></li>
<li style="color:#5a3e2e">E-Mail（请填写您的注册E-Mail , 以便进行核对！）</li>
<li><label>
<input type="text" id="mail" name="reg.mail" maxlength="40" class="invoice_input"/>
</label></li>
<li style="margin-top:10px; height:30px;"><span style="font-family:'宋体'; font-size:12px; color:#FF0000">${forgotMsg}</span></li>
<li style="margin-top:10px; height:30px;"><a href="#" onclick="check();" class="reg_button ">提交相关信息</a></li>

</ul>
</div>

</form>
</body>
</html>
<script language="javascript">  
	function check(){ 
		var username = document.getElementById("username").value;
		var mail = document.getElementById("mail").value; 
		
		if(username == ""){
			document.getElementById("username").focus();
			alert("请输入您的用户名!");
			return ;
		}  
		
		if(mail == ""){
			document.getElementById("mail").focus();
			alert("请输入您的邮件地址!");
			return ;
		} 
		
		if(!CheckIsEmail("floginForm","mail",mail)){
			document.getElementById("mail").focus();
			alert("您输入的邮件地址格式不正确!");
			return ;
		}  
		
		document.getElementsByTagName('form')[0].submit();
		 
	} 
    
    function CheckIsEmail(Inform, Inputname, Email) {
		var Form = Inform + ".";
		eval("Temp=" + Form + Inputname + ".value;");
		if (Temp.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {
			//alert("\u63d0\u9192\u60a8:" + Email + "\u683c\u5f0f\u4e0d\u6b63\u786e\uff01");
			eval(Form + Inputname + ".className='RedInput';");
			eval(Form + Inputname + ".focus();");
			return false;
		} else {
			eval(Form + Inputname + ".className=" + Form + Inputname + ".className.replace('RedInput','');");
			return true;
		}
	}
</script>
